package se.statifyme.server.entities;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

import se.statifyme.server.declaration.ItemField;
import se.statifyme.server.declaration.ItemType;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
@Entity
@ItemType(displayName = "Economy")
public class EconomyRecord extends Record {

	@Basic(optional = false)
	@ItemField(displayName = "Category")
	private String category;
	
	@ItemField(displayName = "Description")
	private String description;

	@Basic(optional = false)
	@ItemField(displayName = "Amount")
	private double amount;

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}
	
}
